﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SHKF.B2C.JuShuiTan.Model.Inter.TaoBao
{
    public class Order
    {
        /// <summary>
        /// 买家实付
        /// </summary>
        public decimal? buyer_paid_amount { get; set; }

        /// <summary>
        /// 公司编号
        /// </summary>
        public long co_id { get; set; }

        /// <summary>
        /// 订单创建时间
        /// </summary>
        public DateTime created { get; set; }

        public string f_freight { get; set; }

        /// <summary>
        /// 运费，保留两位小数，单位（元
        /// </summary>
        public decimal? freight { get; set; }

        /// <summary>
        /// 实称重量
        /// </summary>
        public string f_weight { get; set; }

        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal? free_amount { get; set; }

        /// <summary>
        /// 是否货到付款
        /// </summary>
        public bool is_cod { get; set; }

        /// <summary>
        /// 快递单号
        /// </summary>
        public string l_id { get; set; }

        /// <summary>
        /// 多标签
        /// </summary>
        public string labels { get; set; }

        /// <summary>
        /// 快递公司编码
        /// </summary>
        public string lc_id { get; set; }

        /// <summary>
        /// 物流公司名称
        /// </summary>
        public string logistics_company { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? modified { get; set; }

        /// <summary>
        /// 内部单号
        /// </summary>
        public string o_id { get; set; }

        /// <summary>
        /// 淘系订单oaid
        /// </summary>
        public string oaid { get; set; }

        /// <summary>
        /// 买家唯一id
        /// </summary>
        public string open_id { get; set; }

        /// <summary>
        /// 订单日期
        /// </summary>
        public DateTime order_date { get; set; }

        /// <summary>
        /// 订单来源，
        /// ERP：手工下单；
        /// COPY：复制；
        /// TAOBAO；淘宝天猫； 
        /// MERGE：合并； 
        /// SPLIT：拆分；拆分还原； 
        /// MOBILE：手机； 
        /// IMPORT:导入； 
        /// drp-s：供销推送； 
        /// drp-d：分销推送； 
        /// KWAISHOP：快手；微商城； 
        /// PINDUODUO；拼多多； 
        /// TOUTIAOFXG；头条放心购
        /// </summary>
        public string order_from { get; set; }

        /// <summary>
        /// 实际支付金额
        /// </summary>
        public decimal paid_amount { get; set; }

        /// <summary>
        /// 应付金额，保留两位小数，单位（元）
        /// </summary>
        public decimal pay_amount { get; set; }

        /// <summary>
        /// 应付金额，保留两位小数，单位（元）
        /// </summary>
        public DateTime? pay_date { get; set; }

        /// <summary>
        /// 计划发货时间
        /// </summary>
        public DateTime plan_delivery_date { get; set; }

        /// <summary>
        /// 问题描述
        /// </summary>
        public string question_desc { get; set; }

        /// <summary>
        /// 问题类型，仅当问题订单时有效
        /// </summary>
        public string question_type { get; set; }


        public string receiver_city { get; set; }
        public string receiver_country { get; set; }
        public string receiver_district { get; set; }
        public string receiver_state { get; set; }

        /// <summary>
        /// 邮编
        /// </summary>
        public string receiver_zip { get; set; }

        /// <summary>
        /// 主播id
        /// </summary>
        public string referrer_id { get; set; }

        /// <summary>
        /// 主播名称
        /// </summary>
        public string referrer_name { get; set; }

        public string remark { get; set; }

        /// <summary>
        /// 旗帜
        /// </summary>
        public string seller_flag { get; set; }

        /// <summary>
        /// 发货日期
        /// </summary>
        public DateTime send_date { get; set; }

        public string shop_buyer_id { get; set; }

        /// <summary>
        /// 店铺编号
        /// </summary>
        public int shop_id { get; set; }

        public string shop_name { get; set; }

        /// <summary>
        /// 店铺站点信息
        /// </summary>
        public string shop_site { get; set; }

        /// <summary>
        /// 平台订单状态： 
        /// 等待买家付款=WAIT_BUYER_PAY， 
        /// 等待卖家发货=WAIT_SELLER_SEND_GOODS,
        /// 等待买家确认收货=WAIT_BUYER_CONFIRM_GOODS, 
        /// 交易成功=TRADE_FINISHED, 
        /// 付款后交易关闭=TRADE_CLOSED,
        /// 付款前交易关闭=TRADE_CLOSED_BY_TAOBAO；
        /// </summary>
        public string shop_status { get; set; }

        /// <summary>
        /// 商品（商品总数.sku_id*qty）
        /// </summary>
        public string skus { get; set; }

        /// <summary>
        /// 线上单号
        /// </summary>
        public string so_id { get; set; }

        /// <summary>
        /// ERP订单状态：
        /// 待付款：WaitPay；
        /// 发货中：Delivering；
        /// 被合并：Merged；
        /// 异常：Question；
        /// 被拆分：Split；
        /// 等供销商|外仓发货：WaitOuterSent；
        /// 已付款待审核：WaitConfirm；
        /// 已客审待财审：WaitFConfirm；
        /// 已发货：Sent；
        /// 取消：Cancelled
        /// </summary>
        public string status { get; set; }

        public int ts { get; set; }

        /// <summary>
        /// 订单类型
        /// </summary>
        public string type { get; set; }

        /// <summary>
        /// 预估重量
        /// </summary>
        public string weight { get; set; }

        /// <summary>
        /// 分仓编号
        /// </summary>
        public int wms_co_id { get; set; }

        /// <summary>
        /// 支付节点
        /// </summary>
        public List<OrderPay> pays { get; set; }

        public List<OrderItem> items { get; set; }
    }
}
